import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	// 查询订阅信息
	querySubscribe(params) {
		let url = 'socialized-notice/subscribe/select'
		return api.request(url, 'get', {
			...params
		})
	},
	// 订阅
	subscribe(params) {
		let url = `socialized-notice/subscribe/add`
		return api.request(url, 'post', {
			...params
		})
	},
	// 取消订阅
	unsubscribe(params) {
		let url = `socialized-notice/subscribe/cancel`
		return api.request(url,'post',{
			...params
		})
	},
	// 环境修改订阅
	editSubscribe(params) {
		let url = `socialized-notice/subscribe/edit`
		return api.request(url,'put',{
			...params
		})
	}
}